// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/GameModeBase.h"
#include "../StructAndEnum/StructAndEnum.h"
#include "BasePC.h"
#include "BaseGM.generated.h"

/**
 * 
 */
UCLASS()
class SGAME_API ABaseGM : public AGameModeBase
{
	GENERATED_BODY()
public:

	/***************************************************************************************/
	/***************************              函数            ******************************/
	/***************************************************************************************/
	ABaseGM();

	virtual void BeginPlay() override;

	//登录游戏
	virtual void PostLogin(APlayerController* NewPlayer) override;

	//退出游戏
	virtual void Logout(AController* Exiting) override;

	//转播聊天
	void SendChatMessage(FChatMessage ChatMessage);


	/***************************************************************************************/
	/***************************              变量            ******************************/
	/***************************************************************************************/

	TArray<ABasePC*> CurrentlyOnlinePlayers;//当前在线玩家

	
};
